30 #ifndef __PLAYSOUND_H__
31 #define __PLAYSOUND_H__
34 #include "fsl_soundcard.h"
35 #include "fsl_sgtl5000_driver.h"
42 #define WAVE_FILE_HEADER_SIZE (0x2C)
43 typedef struct wave_header
63 typedef struct wave_file
73 typedef uint32_t (*
APP_GET_DATA_FUNC)(uint32_t NumBytesReq, uint8_t **ppDada, uint32_t offset);
uint32_t samp_freq
Definition: playsound.h:53
uint16_t bit_samp
Definition: playsound.h:56
void PLAYSOUND_Init(void)
Init sound card.
Definition: playsound.c:89
uint32_t * pData
data pointer
Definition: playsound.h:66
uint32_t byte_rate
Definition: playsound.h:54
uint16_t block_align
Definition: playsound.h:55
int PLAYSOUND_Play(APP_GET_DATA_FUNC fpAppGetData)
Use sound card to play audio, need wave file data, only support standard Windows PCM uncompressed fil...
Definition: playsound.c:116
int PLAYSOUND_GetWaveFileInfo(uint8_t *pBuffer, wave_file_t *pWave)
Decode wave file header, only support standard Windows PCM uncompressed file.
Definition: playsound.c:199
uint32_t(* APP_GET_DATA_FUNC)(uint32_t NumBytesReq, uint8_t **ppDada, uint32_t offset)
<
Definition: playsound.h:73
Definition: modulator.h:88
uint32_t fmt_len
Definition: playsound.h:50